import Axios from '../../lib/request'

//代理管理列表
export const tAgentList = function (data) {
    return Axios.post("/tAgent/list", data);
};

//代理管理审批
export const tAgentIsApproval = function (data) {
    return Axios.post("/tAgent/isApproval", data);
};

//同意 商品订单信息列表
export const tAgentGetCommodityOrderlist = function (id) {
    return Axios.get(`/tAgent/getCommodityOrderlist/${id}`);
};

//商品配置列表
export const tAgentGetCommodityDisposelist = function (id) {
    return Axios.get(`/tAgent/getCommodityDisposelist/${id}`);
};

//通过商品spuid查询规则
export const tAgentGetSpuidRebateRules = function (data) {
    return Axios.post("/tRebaterules/getSpuidRebateRules", data);
};

//商品配置提交
export const tAgentLevelUpdate = function (data) {
    return Axios.post("/tAgentLevel/update", data);
};

//撤销代理 
export const tAgentCancelAgent = function (id) {
    return Axios.get(`/tAgent/CancelAgent?id=${id}`);
};